/**
 * EBook Organizer
 * 4/30/2010
 * <P>
 * A <code>FileType</code> specification for PDFs
 * </P>
 * @version 0.1
 */
public class FileTypePDF extends FileType implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2698985543007424570L;


	public FileTypePDF() {
		super(null, null);
		
		super.programPath = "C:\\Program Files (x86)\\Adobe\\Reader 9.0\\Reader\\AcroRd32.exe";
		super.fileType = ".pdf";
	}

	public String toOpenString( EBook book) {
		String cmdLine = book.getAttributes().type.getProgramPath();
		
		cmdLine+=" /A \"page=" + book.getAttributes().currentPage + "\" "; //to open at current page
		cmdLine+= " "+book.getFilePath();
		
		return cmdLine;
	}
	
	
	
}
